gl: handle B8G8R8 texture data when uploading
authorChristian Hergert <chergert@redhat.com>
Mon, 8 Feb 2021 23:30:58 +0000 (15:30 -0800)
committerChristian Hergert <chergert@redhat.com>
Mon, 8 Feb 2021 23:32:12 +0000 (15:32 -0800)
commit3a4366363042722d642b492788377407587c7886
tree750b552289d92c872589c412345f6cff5caa375d
parent360a66e945cba02701234951ff86d5b88c12ed8c
gl: handle B8G8R8 texture data when uploading

We do not need to translate this on the CPU when we can instead push it
to the GPU in the same format and allow it to swizzle.

This fixes a huge number of memory allocations found while uploading the
GTK animation in widget-factory.
gdk/gdkglcontext.c